package com.qh.pet.service;

import com.qh.basic.util.AjaxResult;
import com.qh.basic.util.pageList;
import com.qh.pet.domain.SearchMasterMsg;
import com.qh.basic.service.BaseService;
import com.qh.pet.dto.MsgDto;
import com.qh.pet.query.SearchMasterMsgQuery;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author qhao
 * @since 2023-02-20
 */
public interface ISearchMasterMsgService extends BaseService<SearchMasterMsg> {
    /**
     * 寻主
     * @param msg
     * @param request
     * @return
     */
    AjaxResult publish(SearchMasterMsg msg, HttpServletRequest request);

    pageList<SearchMasterMsg> user(SearchMasterMsgQuery query, HttpServletRequest request);

    pageList<SearchMasterMsg> finish(SearchMasterMsgQuery query, HttpServletRequest request);

    pageList<SearchMasterMsg> toSearchMasterPool(SearchMasterMsgQuery query, HttpServletRequest request);

    pageList<SearchMasterMsg> toHandle(SearchMasterMsgQuery query, HttpServletRequest request);

    /**
     * 店铺拒单
     * @param id
     */
    void reject(Long id);

    /**
     * 店铺接单
     * @param dto
     */
    void accept(MsgDto dto);
}
